3.2.4 \(\int \frac {(a+a \sin (e+f x))^2}{c+d x} \, dx\) [104]

Optimal. Leaf size=145 \[ -\frac {a^2 \cos \left (2 e-\frac {2 c f}{d}\right ) \text {Ci}\left (\frac {2 c f}{d}+2 f x\right )}{2 d}+\frac {3 a^2 \log (c+d x)}{2 d}+\frac {2 a^2 \text {Ci}\left (\frac {c f}{d}+f x\right ) \sin \left (e-\frac {c f}{d}\right )}{d}+\frac {2 a^2 \cos \left (e-\frac {c f}{d}\right ) \text {Si}\left (\frac {c f}{d}+f x\right )}{d}+\frac {a^2 \sin \left (2 e-\frac {2 c f}{d}\right ) \text {Si}\left (\frac {2 c f}{d}+2 f x\right )}{2 d} \]

[Out]

-1/2*a^2*Ci(2*c*f/d+2*f*x)*cos(-2*e+2*c*f/d)/d+3/2*a^2*ln(d*x+c)/d+2*a^2*cos(-e+c*f/d)*Si(c*f/d+f*x)/d-1/2*a^2
*Si(2*c*f/d+2*f*x)*sin(-2*e+2*c*f/d)/d-2*a^2*Ci(c*f/d+f*x)*sin(-e+c*f/d)/d

________________________________________________________________________________________

Rubi [A]
time = 0.24, antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 5, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3399, 3393, 3384, 3380, 3383} \begin {gather*} \frac {2 a^2 \text {CosIntegral}\left (\frac {c f}{d}+f x\right ) \sin \left (e-\frac {c f}{d}\right )}{d}-\frac {a^2 \text {CosIntegral}\left (\frac {2 c f}{d}+2 f x\right ) \cos \left (2 e-\frac {2 c f}{d}\right )}{2 d}+\frac {a^2 \sin \left (2 e-\frac {2 c f}{d}\right ) \text {Si}\left (2 x f+\frac {2 c f}{d}\right )}{2 d}+\frac {2 a^2 \cos \left (e-\frac {c f}{d}\right ) \text {Si}\left (x f+\frac {c f}{d}\right )}{d}+\frac {3 a^2 \log (c+d x)}{2 d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + a*Sin[e + f*x])^2/(c + d*x),x]

[Out]

-1/2*(a^2*Cos[2*e - (2*c*f)/d]*CosIntegral[(2*c*f)/d + 2*f*x])/d + (3*a^2*Log[c + d*x])/(2*d) + (2*a^2*CosInte
gral[(c*f)/d + f*x]*Sin[e - (c*f)/d])/d + (2*a^2*Cos[e - (c*f)/d]*SinIntegral[(c*f)/d + f*x])/d + (a^2*Sin[2*e
 - (2*c*f)/d]*SinIntegral[(2*c*f)/d + 2*f*x])/(2*d)

Rule 3380

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[SinIntegral[e + f*x]/d, x] /; FreeQ[{c, d,
 e, f}, x] && EqQ[d*e - c*f, 0]

Rule 3383

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[CosIntegral[e - Pi/2 + f*x]/d, x] /; FreeQ
[{c, d, e, f}, x] && EqQ[d*(e - Pi/2) - c*f, 0]

Rule 3384

Int[sin[(e_.) + (f_.)*(x_)]/((c_.) + (d_.)*(x_)), x_Symbol] :> Dist[Cos[(d*e - c*f)/d], Int[Sin[c*(f/d) + f*x]
/(c + d*x), x], x] + Dist[Sin[(d*e - c*f)/d], Int[Cos[c*(f/d) + f*x]/(c + d*x), x], x] /; FreeQ[{c, d, e, f},
x] && NeQ[d*e - c*f, 0]

Rule 3393

Int[((c_.) + (d_.)*(x_))^(m_)*sin[(e_.) + (f_.)*(x_)]^(n_), x_Symbol] :> Int[ExpandTrigReduce[(c + d*x)^m, Sin
[e + f*x]^n, x], x] /; FreeQ[{c, d, e, f, m}, x] && IGtQ[n, 1] && ( !RationalQ[m] || (GeQ[m, -1] && LtQ[m, 1])
)

Rule 3399

Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[(2*a)^n, Int[(c
 + d*x)^m*Sin[(1/2)*(e + Pi*(a/(2*b))) + f*(x/2)]^(2*n), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && EqQ[a^2
- b^2, 0] && IntegerQ[n] && (GtQ[n, 0] || IGtQ[m, 0])

Rubi steps

\begin {align*} \int \frac {(a+a \sin (e+f x))^2}{c+d x} \, dx &=\left (4 a^2\right ) \int \frac {\sin ^4\left (\frac {1}{2} \left (e+\frac {\pi }{2}\right )+\frac {f x}{2}\right )}{c+d x} \, dx\\ &=\left (4 a^2\right ) \int \left (\frac {3}{8 (c+d x)}-\frac {\cos (2 e+2 f x)}{8 (c+d x)}+\frac {\sin (e+f x)}{2 (c+d x)}\right ) \, dx\\ &=\frac {3 a^2 \log (c+d x)}{2 d}-\frac {1}{2} a^2 \int \frac {\cos (2 e+2 f x)}{c+d x} \, dx+\left (2 a^2\right ) \int \frac {\sin (e+f x)}{c+d x} \, dx\\ &=\frac {3 a^2 \log (c+d x)}{2 d}-\frac {1}{2} \left (a^2 \cos \left (2 e-\frac {2 c f}{d}\right )\right ) \int \frac {\cos \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx+\left (2 a^2 \cos \left (e-\frac {c f}{d}\right )\right ) \int \frac {\sin \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx+\frac {1}{2} \left (a^2 \sin \left (2 e-\frac {2 c f}{d}\right )\right ) \int \frac {\sin \left (\frac {2 c f}{d}+2 f x\right )}{c+d x} \, dx+\left (2 a^2 \sin \left (e-\frac {c f}{d}\right )\right ) \int \frac {\cos \left (\frac {c f}{d}+f x\right )}{c+d x} \, dx\\ &=-\frac {a^2 \cos \left (2 e-\frac {2 c f}{d}\right ) \text {Ci}\left (\frac {2 c f}{d}+2 f x\right )}{2 d}+\frac {3 a^2 \log (c+d x)}{2 d}+\frac {2 a^2 \text {Ci}\left (\frac {c f}{d}+f x\right ) \sin \left (e-\frac {c f}{d}\right )}{d}+\frac {2 a^2 \cos \left (e-\frac {c f}{d}\right ) \text {Si}\left (\frac {c f}{d}+f x\right )}{d}+\frac {a^2 \sin \left (2 e-\frac {2 c f}{d}\right ) \text {Si}\left (\frac {2 c f}{d}+2 f x\right )}{2 d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.17, size = 114, normalized size = 0.79 \begin {gather*} \frac {a^2 \left (-\cos \left (2 e-\frac {2 c f}{d}\right ) \text {Ci}\left (\frac {2 f (c+d x)}{d}\right )+3 \log (c+d x)+4 \text {Ci}\left (f \left (\frac {c}{d}+x\right )\right ) \sin \left (e-\frac {c f}{d}\right )+4 \cos \left (e-\frac {c f}{d}\right ) \text {Si}\left (f \left (\frac {c}{d}+x\right )\right )+\sin \left (2 e-\frac {2 c f}{d}\right ) \text {Si}\left (\frac {2 f (c+d x)}{d}\right )\right )}{2 d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + a*Sin[e + f*x])^2/(c + d*x),x]

[Out]

(a^2*(-(Cos[2*e - (2*c*f)/d]*CosIntegral[(2*f*(c + d*x))/d]) + 3*Log[c + d*x] + 4*CosIntegral[f*(c/d + x)]*Sin
[e - (c*f)/d] + 4*Cos[e - (c*f)/d]*SinIntegral[f*(c/d + x)] + Sin[2*e - (2*c*f)/d]*SinIntegral[(2*f*(c + d*x))
/d]))/(2*d)

________________________________________________________________________________________

Maple [A]
time = 0.08, size = 198, normalized size = 1.37

method result size
derivativedivides \(\frac {\frac {3 a^{2} f \ln \left (c f -d e +d \left (f x +e \right )\right )}{2 d}-\frac {a^{2} f \left (\frac {2 \sinIntegral \left (2 f x +2 e +\frac {2 c f -2 d e}{d}\right ) \sin \left (\frac {2 c f -2 d e}{d}\right )}{d}+\frac {2 \cosineIntegral \left (2 f x +2 e +\frac {2 c f -2 d e}{d}\right ) \cos \left (\frac {2 c f -2 d e}{d}\right )}{d}\right )}{4}+2 a^{2} f \left (\frac {\sinIntegral \left (f x +e +\frac {c f -d e}{d}\right ) \cos \left (\frac {c f -d e}{d}\right )}{d}-\frac {\cosineIntegral \left (f x +e +\frac {c f -d e}{d}\right ) \sin \left (\frac {c f -d e}{d}\right )}{d}\right )}{f}\) \(198\)
default \(\frac {\frac {3 a^{2} f \ln \left (c f -d e +d \left (f x +e \right )\right )}{2 d}-\frac {a^{2} f \left (\frac {2 \sinIntegral \left (2 f x +2 e +\frac {2 c f -2 d e}{d}\right ) \sin \left (\frac {2 c f -2 d e}{d}\right )}{d}+\frac {2 \cosineIntegral \left (2 f x +2 e +\frac {2 c f -2 d e}{d}\right ) \cos \left (\frac {2 c f -2 d e}{d}\right )}{d}\right )}{4}+2 a^{2} f \left (\frac {\sinIntegral \left (f x +e +\frac {c f -d e}{d}\right ) \cos \left (\frac {c f -d e}{d}\right )}{d}-\frac {\cosineIntegral \left (f x +e +\frac {c f -d e}{d}\right ) \sin \left (\frac {c f -d e}{d}\right )}{d}\right )}{f}\) \(198\)
risch \(-\frac {i a^{2} {\mathrm e}^{\frac {i \left (c f -d e \right )}{d}} \expIntegral \left (1, i f x +i e +\frac {i \left (c f -d e \right )}{d}\right )}{d}+\frac {3 a^{2} \ln \left (d x +c \right )}{2 d}+\frac {a^{2} {\mathrm e}^{\frac {2 i \left (c f -d e \right )}{d}} \expIntegral \left (1, 2 i f x +2 i e +\frac {2 i \left (c f -d e \right )}{d}\right )}{4 d}+\frac {a^{2} {\mathrm e}^{-\frac {2 i \left (c f -d e \right )}{d}} \expIntegral \left (1, -2 i f x -2 i e -\frac {2 \left (i c f -i d e \right )}{d}\right )}{4 d}+\frac {i a^{2} {\mathrm e}^{-\frac {i \left (c f -d e \right )}{d}} \expIntegral \left (1, -i f x -i e -\frac {i c f -i d e}{d}\right )}{d}\) \(218\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^2/(d*x+c),x,method=_RETURNVERBOSE)

[Out]

1/f*(3/2*a^2*f*ln(c*f-d*e+d*(f*x+e))/d-1/4*a^2*f*(2*Si(2*f*x+2*e+2*(c*f-d*e)/d)*sin(2*(c*f-d*e)/d)/d+2*Ci(2*f*
x+2*e+2*(c*f-d*e)/d)*cos(2*(c*f-d*e)/d)/d)+2*a^2*f*(Si(f*x+e+(c*f-d*e)/d)*cos((c*f-d*e)/d)/d-Ci(f*x+e+(c*f-d*e
)/d)*sin((c*f-d*e)/d)/d))

________________________________________________________________________________________

Maxima [C] Result contains complex when optimal does not.
time = 0.45, size = 359, normalized size = 2.48 \begin {gather*} \frac {\frac {4 \, a^{2} f \log \left (c + \frac {{\left (f x + e\right )} d}{f} - \frac {d e}{f}\right )}{d} + \frac {{\left (f {\left (E_{1}\left (\frac {2 \, {\left (-i \, {\left (f x + e\right )} d - i \, c f + i \, d e\right )}}{d}\right ) + E_{1}\left (-\frac {2 \, {\left (-i \, {\left (f x + e\right )} d - i \, c f + i \, d e\right )}}{d}\right )\right )} \cos \left (\frac {2 \, {\left (c f - d e\right )}}{d}\right ) + f {\left (-i \, E_{1}\left (\frac {2 \, {\left (-i \, {\left (f x + e\right )} d - i \, c f + i \, d e\right )}}{d}\right ) + i \, E_{1}\left (-\frac {2 \, {\left (-i \, {\left (f x + e\right )} d - i \, c f + i \, d e\right )}}{d}\right )\right )} \sin \left (\frac {2 \, {\left (c f - d e\right )}}{d}\right ) + 2 \, f \log \left ({\left (f x + e\right )} d + c f - d e\right )\right )} a^{2}}{d} + \frac {4 \, {\left (f {\left (-i \, E_{1}\left (\frac {i \, {\left (f x + e\right )} d + i \, c f - i \, d e}{d}\right ) + i \, E_{1}\left (-\frac {i \, {\left (f x + e\right )} d + i \, c f - i \, d e}{d}\right )\right )} \cos \left (\frac {c f - d e}{d}\right ) + f {\left (E_{1}\left (\frac {i \, {\left (f x + e\right )} d + i \, c f - i \, d e}{d}\right ) + E_{1}\left (-\frac {i \, {\left (f x + e\right )} d + i \, c f - i \, d e}{d}\right )\right )} \sin \left (\frac {c f - d e}{d}\right )\right )} a^{2}}{d}}{4 \, f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^2/(d*x+c),x, algorithm="maxima")

[Out]

1/4*(4*a^2*f*log(c + (f*x + e)*d/f - d*e/f)/d + (f*(exp_integral_e(1, 2*(-I*(f*x + e)*d - I*c*f + I*d*e)/d) +
exp_integral_e(1, -2*(-I*(f*x + e)*d - I*c*f + I*d*e)/d))*cos(2*(c*f - d*e)/d) + f*(-I*exp_integral_e(1, 2*(-I
*(f*x + e)*d - I*c*f + I*d*e)/d) + I*exp_integral_e(1, -2*(-I*(f*x + e)*d - I*c*f + I*d*e)/d))*sin(2*(c*f - d*
e)/d) + 2*f*log((f*x + e)*d + c*f - d*e))*a^2/d + 4*(f*(-I*exp_integral_e(1, (I*(f*x + e)*d + I*c*f - I*d*e)/d
) + I*exp_integral_e(1, -(I*(f*x + e)*d + I*c*f - I*d*e)/d))*cos((c*f - d*e)/d) + f*(exp_integral_e(1, (I*(f*x
 + e)*d + I*c*f - I*d*e)/d) + exp_integral_e(1, -(I*(f*x + e)*d + I*c*f - I*d*e)/d))*sin((c*f - d*e)/d))*a^2/d
)/f

________________________________________________________________________________________

Fricas [A]
time = 0.35, size = 191, normalized size = 1.32 \begin {gather*} \frac {2 \, a^{2} \sin \left (-\frac {2 \, {\left (c f - d e\right )}}{d}\right ) \operatorname {Si}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) + 8 \, a^{2} \cos \left (-\frac {c f - d e}{d}\right ) \operatorname {Si}\left (\frac {d f x + c f}{d}\right ) + 6 \, a^{2} \log \left (d x + c\right ) - {\left (a^{2} \operatorname {Ci}\left (\frac {2 \, {\left (d f x + c f\right )}}{d}\right ) + a^{2} \operatorname {Ci}\left (-\frac {2 \, {\left (d f x + c f\right )}}{d}\right )\right )} \cos \left (-\frac {2 \, {\left (c f - d e\right )}}{d}\right ) + 4 \, {\left (a^{2} \operatorname {Ci}\left (\frac {d f x + c f}{d}\right ) + a^{2} \operatorname {Ci}\left (-\frac {d f x + c f}{d}\right )\right )} \sin \left (-\frac {c f - d e}{d}\right )}{4 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^2/(d*x+c),x, algorithm="fricas")

[Out]

1/4*(2*a^2*sin(-2*(c*f - d*e)/d)*sin_integral(2*(d*f*x + c*f)/d) + 8*a^2*cos(-(c*f - d*e)/d)*sin_integral((d*f
*x + c*f)/d) + 6*a^2*log(d*x + c) - (a^2*cos_integral(2*(d*f*x + c*f)/d) + a^2*cos_integral(-2*(d*f*x + c*f)/d
))*cos(-2*(c*f - d*e)/d) + 4*(a^2*cos_integral((d*f*x + c*f)/d) + a^2*cos_integral(-(d*f*x + c*f)/d))*sin(-(c*
f - d*e)/d))/d

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a^{2} \left (\int \frac {2 \sin {\left (e + f x \right )}}{c + d x}\, dx + \int \frac {\sin ^{2}{\left (e + f x \right )}}{c + d x}\, dx + \int \frac {1}{c + d x}\, dx\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**2/(d*x+c),x)

[Out]

a**2*(Integral(2*sin(e + f*x)/(c + d*x), x) + Integral(sin(e + f*x)**2/(c + d*x), x) + Integral(1/(c + d*x), x
))

________________________________________________________________________________________

Giac [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 2.02, size = 7049, normalized size = 48.61 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^2/(d*x+c),x, algorithm="giac")

[Out]

1/4*(4*a^2*imag_part(cos_integral(f*x + c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 - 4*a^2*im
ag_part(cos_integral(-f*x - c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 + 6*a^2*log(abs(d*x +
c))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 - a^2*real_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f
/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 - a^2*real_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)^2*tan(
1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 + 8*a^2*sin_integral((d*f*x + c*f)/d)*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2
*e)^2*tan(e)^2 - 2*a^2*imag_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan
(e) + 2*a^2*imag_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e) - 4*a^
2*sin_integral(2*(d*f*x + c*f)/d)*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e) - 8*a^2*real_part(cos_inte
gral(f*x + c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)*tan(e)^2 - 8*a^2*real_part(cos_integral(-f*x - c*f
/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)*tan(e)^2 + 8*a^2*real_part(cos_integral(f*x + c*f/d))*tan(c*f/d)
^2*tan(1/2*c*f/d)*tan(1/2*e)^2*tan(e)^2 + 8*a^2*real_part(cos_integral(-f*x - c*f/d))*tan(c*f/d)^2*tan(1/2*c*f
/d)*tan(1/2*e)^2*tan(e)^2 + 2*a^2*imag_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f/d)*tan(1/2*c*f/d)^2*tan(1/2
*e)^2*tan(e)^2 - 2*a^2*imag_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(
e)^2 + 4*a^2*sin_integral(2*(d*f*x + c*f)/d)*tan(c*f/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 + 4*a^2*imag_pa
rt(cos_integral(f*x + c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 4*a^2*imag_part(cos_integral(-f*x -
 c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 6*a^2*log(abs(d*x + c))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*ta
n(1/2*e)^2 + a^2*real_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + a^2*rea
l_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 8*a^2*sin_integral((d*f*x
+ c*f)/d)*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 4*a^2*real_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f/
d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e) - 4*a^2*real_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)*tan(1/2*c
*f/d)^2*tan(1/2*e)^2*tan(e) - 4*a^2*imag_part(cos_integral(f*x + c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(e)^
2 + 4*a^2*imag_part(cos_integral(-f*x - c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(e)^2 + 6*a^2*log(abs(d*x + c
))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(e)^2 - a^2*real_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f/d)^2*tan(1/2*
c*f/d)^2*tan(e)^2 - a^2*real_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(e)^2 - 8*a
^2*sin_integral((d*f*x + c*f)/d)*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(e)^2 + 16*a^2*imag_part(cos_integral(f*x +
c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)*tan(1/2*e)*tan(e)^2 - 16*a^2*imag_part(cos_integral(-f*x - c*f/d))*tan(c*f
/d)^2*tan(1/2*c*f/d)*tan(1/2*e)*tan(e)^2 + 32*a^2*sin_integral((d*f*x + c*f)/d)*tan(c*f/d)^2*tan(1/2*c*f/d)*ta
n(1/2*e)*tan(e)^2 - 4*a^2*imag_part(cos_integral(f*x + c*f/d))*tan(c*f/d)^2*tan(1/2*e)^2*tan(e)^2 + 4*a^2*imag
_part(cos_integral(-f*x - c*f/d))*tan(c*f/d)^2*tan(1/2*e)^2*tan(e)^2 + 6*a^2*log(abs(d*x + c))*tan(c*f/d)^2*ta
n(1/2*e)^2*tan(e)^2 - a^2*real_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f/d)^2*tan(1/2*e)^2*tan(e)^2 - a^2*re
al_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)^2*tan(1/2*e)^2*tan(e)^2 - 8*a^2*sin_integral((d*f*x + c*f)/
d)*tan(c*f/d)^2*tan(1/2*e)^2*tan(e)^2 + 4*a^2*imag_part(cos_integral(f*x + c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)
^2*tan(e)^2 - 4*a^2*imag_part(cos_integral(-f*x - c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 + 6*a^2*log(a
bs(d*x + c))*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 + a^2*real_part(cos_integral(2*f*x + 2*c*f/d))*tan(1/2*c*f
/d)^2*tan(1/2*e)^2*tan(e)^2 + a^2*real_part(cos_integral(-2*f*x - 2*c*f/d))*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(
e)^2 + 8*a^2*sin_integral((d*f*x + c*f)/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2*tan(e)^2 - 8*a^2*real_part(cos_integr
al(f*x + c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e) - 8*a^2*real_part(cos_integral(-f*x - c*f/d))*tan(c*
f/d)^2*tan(1/2*c*f/d)^2*tan(1/2*e) + 8*a^2*real_part(cos_integral(f*x + c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)*ta
n(1/2*e)^2 + 8*a^2*real_part(cos_integral(-f*x - c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)*tan(1/2*e)^2 - 2*a^2*imag
_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 + 2*a^2*imag_part(cos_integral(-
2*f*x - 2*c*f/d))*tan(c*f/d)*tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 4*a^2*sin_integral(2*(d*f*x + c*f)/d)*tan(c*f/d)*
tan(1/2*c*f/d)^2*tan(1/2*e)^2 - 2*a^2*imag_part(cos_integral(2*f*x + 2*c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*t
an(e) + 2*a^2*imag_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(e) - 4*a^2*sin_integ
ral(2*(d*f*x + c*f)/d)*tan(c*f/d)^2*tan(1/2*c*f/d)^2*tan(e) - 2*a^2*imag_part(cos_integral(2*f*x + 2*c*f/d))*t
an(c*f/d)^2*tan(1/2*e)^2*tan(e) + 2*a^2*imag_part(cos_integral(-2*f*x - 2*c*f/d))*tan(c*f/d)^2*tan(1/2*e)^2*ta
n(e) - 4*a^2*sin_integral(2*(d*f*x + c*f)/d)*ta...

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^2}{c+d\,x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^2/(c + d*x),x)

[Out]

int((a + a*sin(e + f*x))^2/(c + d*x), x)

________________________________________________________________________________________